// 类型别名
type UnionType = string | number | boolean
type PointType = {
  x: number,
  y: number,
  z?: number
}

function printID(id: PointType) {
  console.info(id.x)
}